package com.dbt.admin.service.impl;

import com.dbt.admin.domain.entity.SysUser;
import com.dbt.admin.mapper.LoginMapper;
import com.dbt.admin.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fangkun
 * @create 2022-08-12-16:43
 */
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    LoginMapper loginMapper;

    @Override
    public SysUser selectUser(String userName, String password) {

        SysUser user = loginMapper.selectUser(userName,password);

        return user;
    }
}
